<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<HEAD><TITLE>员工管理</TITLE><LINK rel=stylesheet type=text/css href="/loan/common/sharecss/ceng.css"></LINK><LINK rel=stylesheet type=text/css href="/loan/common/sharecss/style51.css" media=screen></LINK>
<SCRIPT type=text/javascript src="/loan/dwr/engine.js"></SCRIPT>

<SCRIPT type=text/javascript src="/loan/dwr/util.js"></SCRIPT>

<SCRIPT type=text/javascript src="/loan/dwr/interface/Share_ceng.js"></SCRIPT>

<SCRIPT type=text/javascript src="/loan/common/sharejs/nav.js"></SCRIPT>

<SCRIPT type=text/javascript src="/loan/common/sharejs/validate.js"></SCRIPT>

<SCRIPT type=text/javascript src="/loan/common/sharejs/jquery-1.4.2.min.js"></SCRIPT>
<!--<script type="text/javascript" src="/loan/common/sharejs/jquery.ui.draggable.js"></script>--><!-- 日期控件 -->
<SCRIPT language=javascript type=text/javascript src="/loan/common/sharejs/DatePicker/WdatePicker.js"></SCRIPT>
<LINK rel=stylesheet type=text/css href="http://localhost:8088/loan/common/sharejs/DatePicker/skin/WdatePicker.css"><LINK rel=stylesheet type=text/css href="/loan/common/sharejs/DatePicker/skin/default/datepicker.css"><!-- 日期控件 --><!-- 提示框 -->
<SCRIPT type=text/javascript src="/loan/common/sharejs/jquery.alerts.js"></SCRIPT>

<SCRIPT type=text/javascript src="/loan/common/sharejs/jquery-ui-1.8.5.custom.js"></SCRIPT>
<LINK rel=stylesheet type=text/css href="/loan/common/sharecss/jquery.alerts.css" media=screen></LINK><!-- xyTree --><!-- 提示框 --><!-- 填充IPage中获取的数据到Div中 -->
<SCRIPT type=text/javascript src="/loan/common/sharejs/pageFillData.js"></SCRIPT>
<!-- 填充IPage中获取的数据到Div中end -->
<SCRIPT type=text/javascript>
/**
var url=document.URL;
url=url.replace("/","\\");
var url_chefen=url.split("/");
var url_sel=new Array();
var nav="";
var j=0;
if(url_chefen.length>0){
	DWREngine.setAsync(false);   //设置成同步
	for(var i=url_chefen.length-1;i>-1;i--){
		if(url_chefen[i]=="loan"){
			break;
		}else{
			url_sel[j]=url_chefen[i];
			//alert(url_chefen[i]);
			j++;
		}
	}
	var menu=new Array(2);
	for(var k=0;k<url_sel.length;k++){
		if(url_sel[k].length>0&&k==url_sel.length-1){
			menu[0]=url_sel[k];
			Share_ceng.menu_nav(menu,function(data){
				if(data[0]!=undefined){
					if(data[0].length>0){
						nav=data[0]+nav;
						menu[1]=data[1];
					}
				}
			});
			if(nav.length>3){
				if(nav.substr(0,3)=="-->"){
					nav=nav.substr(3);
				}
			}
		}else if(url_sel[k].length>0){
			menu[0]=url_sel[k];
			Share_ceng.menu_nav(menu,function(data){
				if(data[0]!=undefined){
					if(data[0].length>0){
						nav="-->"+data[0]+nav;
						menu[1]=data[1];
					}
				}
			})
		}
		if(nav.length<1){
			break;
		}
	}
	if(window.parent.document.getElementById("position")!=undefined&&nav.length>0){
		window.parent.document.getElementById("position").innerText=nav;
	}
	DWREngine.setAsync(true); //设置成异步
}**/
//nav.js已经存在
</SCRIPT>

<SCRIPT>
function do_download(filename,type,localname){
    
	if(typeof(type)==undefined){
		type='2';
	}else if(type.length==0){
		type='2';
	}
	if(typeof(localname)==undefined){
		localname="";
	}
	Share_ceng.getDownfile(type,filename,function(data){
	
	    
		if(data!=undefined){
			if(data.length>0){
				var str=data.split("*@@*");
				
				if(str[0]=="error"){
					jAlert('1',"<strong>"+str[1]+"</strong>", '文件下载');
				}else{
				
				
				    var tmpAry=data.split("\\");
				    var filePath="";
				    var fileNme=tmpAry[tmpAry.length-1];
				    
				    
				    
				    
					window.location.href="/loan/upload/download/download.jsp?filepath="+data+"&filename="+fileNme;
				}
			}else{
				jAlert('1',"<strong>获取文件下载路径错误！</strong>", '文件下载');
			}
		}else{
			jAlert('1',"<strong>获取文件下载路径失败！</strong>", '文件下载');
		}
	});
}


function logout(){
  alert('会话过期，为确保安全，请您重新登录');
  	window.top.location.href="/loan/login.do?method=logout";
}
function enter(){
		 var code = window.event.keyCode;   
		 if(code==13){    
    			my_search();   
  		 }   
	}
$(document).ready(function(){
	var temp=$('#btnsreatch');
	var a='搜';
	var tmp=$('input[value*='+a+']');//模糊匹配出'搜'的属性注册事件
	if(tmp!="undefined"&&tmp!=null){
		for(var i=0;i<tmp.length;i++){
			tmp.get(i).onkeyup=enter;
		}
	}
	
//	$.each(tmp,function(){
//		alert(tmp.get(0).value);
		






// 	})
})
</SCRIPT>

<SCRIPT type=text/javascript src="/loan/dwr/interface/smsInit.js"></SCRIPT>

<SCRIPT type=text/javascript src="/loan/dwr/interface/sysMsgSet.js"></SCRIPT>

<SCRIPT type=text/javascript src="/loan/dwr/interface/employeeManage.js"></SCRIPT>

<SCRIPT type=text/javascript src="/loan/common/sharejs/validate.js"></SCRIPT>

<SCRIPT type=text/javascript src="/loan/dwr/interface/transIDNum.js"></SCRIPT>

<SCRIPT type=text/javascript src="/loan/common/sharejs/htgl/htgl.js"></SCRIPT>

<SCRIPT type=text/javascript>
    	//选项卡 
    
      var openflag = 1;
      
	   var my_flag=0; 
	   var index; 
	   var option=""; 
	   var up ;
	    $(document).load(setsession_jsp('')); 
	   $(function(){	
	 	$('#tabs >li').click(function(){
				//获得点击的是第几个选项
		var index = $(this).attr('value');	
		if((openflag=='4')&&(openflag!=index)){
			jConfirm('是否<strong>放弃</strong>此次操作?', '系统提示！', function(data) {
				if(data){
					if(index!=openflag){
			     	var mylink = '#link'+openflag;
	 		     	$(mylink).removeClass('dd_over');
			      	$(mylink).addClass('dd');
			      	mylink = '#link'+index;
			      	$(mylink).addClass('dd_over');
			      	$(mylink).removeClass('dd');
			     	$('#formal_personadd').css('display','none');
			     	$('#personClientOpen3').css('display','none');
			     
				    $('.nr[value='+openflag+']').css('display','none');
					$('.nr[value='+index+']').css('display','block');
					up=openflag;
					openflag = index;
					// my_search(1);
					setsession_jsp('');
					}
				}
				});
			}
			else if(index!=openflag){
				var mylink = '#link'+openflag;
				$(mylink).removeClass('dd_over');
				$(mylink).addClass('dd');
				mylink = '#link'+index;
				$(mylink).addClass('dd_over');
				$(mylink).removeClass('dd');
				$('#formal_personadd').css('display','none');
				$('.nr[value='+openflag+']').css('display','none');
				$('.nr[value='+index+']').css('display','block');
				openflag = index;
				$(mylink).attr("onclick","");
				// my_search(1);
				setsession_jsp('');
			}
	 	 })
	 		if('htgl' == "2")
	 		{
	 			index = 2;
	 		
	 			// setOneLiTabShow('1','2');
	 			var mylink = '#link'+openflag;
				$(mylink).removeClass('dd_over');
				$(mylink).addClass('dd');
				mylink = '#link'+index;
				$(mylink).addClass('dd_over');
				$(mylink).removeClass('dd');
				$('#formal_personadd').css('display','none');
				$('.nr[value='+openflag+']').css('display','none');
				$('.nr[value='+index+']').css('display','block');
				openflag = index;
			  	init('0','2','');
	 		}
	  }) 
	
	if('htgl' == "1")
	{
		my_update('null','null');
	}
	else
	{
		//分页必须 start
		function my_search(pageno,pagesize){
		var em_sts;
		if(openflag==1){
			em_sts=2;
		}else if(openflag==2){
			em_sts=0;
		}else if(openflag==3){
			em_sts=4;
		}
		var search = $('#search'+openflag).val();
		
		employeeManage.getEmpList(em_sts,search,pageno,pagesize,function(data){
		  	var emp_list ='#emp_list'+openflag;	
		  	fillData(emp_list,data);	  	
		});
	}
		//分页必须 end 
}
	  
	
	  //新增员工选项卡
	  function addemp()
	  {	  
	  	 employeeManage.employeesInsertForm(function(data)
		 { 
			$('#formal_personadd').html(data);
			var index = '4';
			if(index != openflag)
			{	
				var mylink = '#link'+openflag;
				$(mylink).removeClass('dd_over');
				$(mylink).addClass('dd');
				mylink = '#link'+ index;
				$(mylink).addClass('dd_over');
				$(mylink).removeClass('dd');
				$(mylink).html("新增员工");
				$('#formal_personadd').css('display','block');
				$('.nr[value='+openflag+"]").css('display','none');
				$('.nr[value='+index+"]").css('display','block');
			}
			
			$('#personClientOpen3').css('display','block');
			$('#formal_personadd').css('display','block');
			up=openflag;
			openflag = index;
		});
	  }
	  //员工详情
	  function my_update(empno,em_sts)
	  {
		  employeeManage.empDetail(empno,em_sts,function(data){
		  $('#formal_personadd').html(data);
				
			var index = '4';
			if(index != openflag)
			{	
				var mylink = '#link'+openflag;
				$(mylink).removeClass('dd_over');
				$(mylink).addClass('dd');
				mylink = '#link'+ index;
				$(mylink).addClass('dd_over');
				$(mylink).removeClass('dd');
				$(mylink).html("员工编辑");
				$('#formal_personadd').css('display','block');
				$('.nr[value='+openflag+"]").css('display','none');
				$('.nr[value='+index+"]").css('display','block');
			}
			
			$('#personClientOpen3').css('display','block');
			$('#formal_personadd').css('display','block');
			up=openflag;
			openflag = index;
		});
	}
	  
	  //返回按钮
	function back(em_sts){
						
		$('#formal_personadd').css('display','none');
	 	$('#personClientOpen3').css('display','none');
		if(em_sts == '1' || em_sts == '0' || em_sts == '3' || em_sts == '9')
 		{
 			up = '2';		//待转正员工
 		}
 		if(em_sts == '2')
 		{
 		  up = '1';		//正式员工
 		}
 		if(em_sts == '4')
 		{
 			up = '3';		//离职员工
 		}	
		DWREngine.setAsync(false);		
		var mylink = '#link'+up;
		$(mylink).addClass('dd_over');
		$(mylink).removeClass('dd');
		$('.nr[value='+up+']').css('display','block');
		openflag=up;
			
		init(em_sts,openflag,'');
	}
	
	   //不同状态的员工列表
	  function init(em_sts,flag,key){  
	   	
	  	employeeManage.getEmpList(em_sts,key,'','',function(data){
	  		var emp_list ='#emp_list'+flag;
	  		fillData(emp_list,data);					
	  	});
	  } 
	
	//检查编号是否存在
	function checkEmno()
	{
	    var emno = document.getElementById("emno").value;		    
	    if((typeof(emno)!="undefined") && emno.length != 0 ) {
	    	if(trimba(emno).length == 0){
 		 		jAlert('1', "不能输入空格",'系统提示!',function (){
            			$('#emno').focus();
          		 });
 	 			return false;
 			 }		 
	    	employeeManage.findEmno(emno,function(data){
	    		if(data != 0){
	    			jAlert('1', "编号已存在",'系统提示!',function (){
            				$('#emno').focus();
          		 		});
	    		}	    		
	    	});
	    }
	 }
	  
	  //点击试用期获取值
	  function get()
	  {	
	  	 document.getElementById('em_sts').options[2].selected=true;
	  }
	  
	  //身份证验证
	  function valShf(frm){
		DWREngine.setAsync(false);
		if(!(isNull(frm.id_card,"身份证号"))){
				return false;
		}	
 		if(!(CheckIDNo(frm.id_card,"身份证")))
  		{
  			return false;
  		}
	
		var flag = 1;
		var id_card=frm.id_card.value;
 		employeeManage.checkExitIdCard(id_card,function(data){	 				 					 				 
		  if(data != 0){
			  jAlert('1','该身份证号已经登记过！','系统提示',function(data){
			  });
			flag = 0;				
		  }
		  else
		  {
	  		if(typeof(id_card)!="undefined" && id_card.length!=0){ 
			transIDNum.transIDNum(id_card,function (rs){
				if(rs=="incorrect"){		  		
			  		jAlert('1','身份证号输入有误!','系统提示',function(data){							
					});
		   			flag = 0;
				}else{
					frm.id_card.value=rs;				
					frm.birthday.value=rs.substring(6,14); //设置出生日期
					frm.sex.value=(parseInt(rs.charAt(16))%2==0? "0":"1"); //设置性别	
					// areaUpdateInit(rs.substring(0,6),'residence_place','1');  //设置户口所在地
					flag = 1;
				}							
			});
		}
	}
}); 
		if(flag == 1){
			return true;
		}else if (flag == 0){		
			return  false;
		}
	}
	
	//编辑验证
	function getId(frm)
	{	 
 		var id_card=frm.id_card.value;
 		var id_card1=frm.id_card1.value;
 		
 		//判读是否是同一身份证号
 		if(id_card == id_card1){  			
 			return  true;
 		}else{  			
			if(valShf(frm)==true){
				return true;
			}else{
				$('#id_card').select();
				$('#id_card').focus();				
			}
 		}	  		
	 }
		
		
	 //新增验证
	  function modify_onclick(frm){ 
	    var loginsubmit = true;
		
		if(!(isNull(frm.emname,"员工姓名"))) {
			return false;	
		}if(!(strLenIsLong(frm.emname,10,"员工姓名"))){
			return false;
		}if(!(isNull(frm.dep_no,"归属部门"))) {
			return false;			
		}if(!(isNull(frm.pos_no,"职务"))) {
			return false;			
		}if(!(isNull(frm.levelno,"职位级别"))) {
			return false;			
		}if(!(isNull(frm.pro_title,"职称"))) { 
			return false;			
		}if(!(isNull(frm.degree,"学历"))) {
			return false;			
		}if(!(isNull(frm.university,"毕业院校"))) {
			return false;	
		}if(!(isNull(frm.profess,"专业"))) {
			return false;
		}if(!(isNull(frm.start_date,"入职时间"))) {
			return false;			
		}
		if(frm.start_date.value > $('#date').val())
		{
			jAlert('1','入职日期不能大于当前时间！','系统提示',function(data){
				 });
			return false; 
		}
		if(!(onCheckDate(frm.start_date,"入职时间"))) {
			return false;			
		}
		if(!(onCheckDateAddition(frm.start_date,"入职时间"))) {
			return false;			
		}
		if(!(isNull(frm.trial_date,"试用期"))) {
			return false;			
		}
		if(!array(frm.trial_date,"试用期"))
		{
			return false;
		}
		if(!(isNull(frm.em_sts,"员工状态"))) {
			return false;			
		}
		if(!(limitLength(frm.filler,'100','备注')))
		{
			return false;
		}		
		return true;
	}
	
	//select 验证
	function changeState()
	{
		var before = document.getElementById('before').value;		
		var em_sts = document.getElementById('em_sts').value;
		var emno = document.getElementById('emno').value;
		
		DWREngine.setAsync(false);
		if(em_sts == '3' )
		{
			jAlert('1', "不能修改为临时状态",'系统提示!',function (){            			
           	});
			return false;
		}
		if(em_sts == '4')
		{
			var i = 0;
			employeeManage.ishasback_amt(emno,function(data){
			if(data > 0)
			{
				jAlert('1', "该员工还有借款未还,不能离职",'系统提示!',function (){     
					my_select(emno,$('#dep_no').val());        			           			
          		});
          		i = 0;
			}
			});
			if(i == 0)
			{
				return false;
			}
		}
		if(before > em_sts)
		{
			jAlert('1', "不允许改变后状态小于修改前状态",'系统提示!',function (){             			
           	});
			return false;
		}
		else
		{
			return true;
		}
	}
	  
	  //保存员工信息
	  function save_emp(){
	  	  var formmap = DWRUtil.getValues('formal_personform');
	  	  DWREngine.setAsync(false);
	  			  		
	  	 var emno = formmap["emno"];
	  	 var em_sts = formmap["em_sts"];
	  	 var emname = formmap["emname"];	  	
	  	 var emp_flag = 0;  //自动插入编号
	 	
	  	 if(modify_onclick(formal_personform) == true &&  valShf(formal_personform) == true)
	  	 {
	  	 	employeeManage.employeesInsert(formmap,emp_flag,function(data){	  	 	
		  	 	if(data != "0")		  	 	{
		  	 		jAlert('1', "操作成功",'系统提示!',function (){
	             			back(em_sts);
	           		 });		  	 		
		  	 	} 		  	
		  	 	else{
		  	 		jAlert('1', "操作失败",'系统提示!',function (){	             			
	           		 });
		  	 	}		 	
	  	 });
	  	 }
	  	  else{
	  	  		return false;
	  	  }		 	
	 }
	 		
	  //员工修改
	  function emp_update(){
	  	  var formmap = DWRUtil.getValues('formal_personform1');
	  	  var emno =  formmap['emno'];
	  	  DWREngine.setAsync(false);
	  	  var em_sts = formmap['em_sts'];
	 employeeManage.getEmpBrno(emno,function(data){
	  if(data != 0)
	  {		
	  	  if(modify_onclick(formal_personform1) == true && (changeState() == true)&&getId(formal_personform1)==true)
	  	  {
	  	 	employeeManage.employeesUpdate(formmap,function(data){
	  	 	if(data != "0"){
	  	 		jAlert('1', "修改成功",'系统提示!',function (){
	            	back(em_sts);	  	 	
	          	});	  	 		
	  	 	}
	  	 	else{
	  	 		jAlert('1', "修改失败",'系统提示!',function (){	            			
	          	});
	  	 	}
	  	 });
	  	}
	  	else
	  	{
	  	  return false;
	  	}
	  }
	  else
	  {
	  	jAlert('1', "对不起,你没有权限!",'系统提示!',function (){             			
        });
	  }
	  });
	  	DWREngine.setAsync(true);	  	 		  	 
  } 	 		  				  									  	 			  	 	
	
	  //转正员工
	  function my_formal(emno,em_sts){
	  employeeManage.getEmpBrno(emno,function(data){
	  if(data != 0)
	  {	  	
		if((em_sts==0)||(em_sts==1) || em_sts == 9){
			jConfirm('确定要<strong>转正</strong>此员工吗?', '系统提示！', function(data) {
			if(data){
				employeeManage.employeesFormal(emno,function(data){
				if(data != 0){
					jAlert('1', "该员工已转正",'系统提示!',function (){           						
						init('0','2','');	
        				});
					}
				});
				}
			});						
		}
		else if(em_sts==2){			
			jAlert('1', "此员工已经转正，不能重复操作!",'系统提示!',function (){             			
          	});
			return;
		}
		else if(em_sts==3 ){				
			jAlert('1', "临时员工不能转正!",'系统提示!',function (){             			
          	});
  		}
  	}
  	else
  	{
  		jAlert('1', "对不起,你没有权限!",'系统提示!',function (){             			
        });
  	}
  	});
 }
	  
	  //离职员工
	  function emp_leave(emno,em_sts){
		  DWREngine.setAsync(false);
	  employeeManage.getEmpBrno(emno,function(data){
	  if(data != 0)
	  {	 
		  if(em_sts==4){			
			jAlert('1', "此员工已经离职，不能重复操作!",'系统提示!',function (){            			
		    });
			return;
		  }else{
		  	employeeManage.ishasback_amt(emno,function(data){
			if(data == 0)
			{
				jConfirm('确定要<strong>离职</strong>此员工吗?', '系统提示！', function(data) {
				if(data){
	  			employeeManage.employeesChgSts(emno,function(data){
	  			if(data!=0){			  					
					jAlert('1', "该员工已经成功离职",'系统提示!',function (){
						if(openflag == 1)
						{
	        				init('2','1','');	
	        			}
	        			if(openflag == 2)
						{
	        				init('0','2','');	
	        			}
	      		 	});			  					
				}else{
					jAlert('1', "离职失败",'系统提示!',function (){	
			    	});
	  			 }
	  			});
		 	   }
	 		});
	 	  }
	 	  else
	 	  {
	 	  	jAlert('1', "该员工还有借款未还,不能离职",'系统提示!',function (){
	 	  		my_select(emno,$('#dep_no').val());
	 	  	});
	 	  }
 		});
	}		
	}
	else
	{
		jAlert('1', "对不起,你没有权限!",'系统提示!',function (){             			
        });
	}	
	 });
	DWREngine.setAsync(true);
 }  
	  
	  //员工申请转正
	  function my_applyformal(emno,em_sts,emname){
 		if(em_sts==4){		
			jAlert('1', "该员工已经离职，不需要申请转正",'系统提示!',function (){          			
	        });
		}if(em_sts==2){		
			jAlert('1', "该员工已经是正式员工",'系统提示!',function (){          			
         	});
		}
		if(em_sts == 3)
		{
			jAlert('1', "临时员工不能申请转正",'系统提示!',function (){      			
         	});
		}
		if(em_sts==0||em_sts==1 || em_sts==9){			
		employeeManage.findUnDo(emno,function(data){		
			if(data != 0){				
				jAlert('1', "该员工已经申请过转正,不能再申请",'系统提示!',function (){           			
	            });
			}else{
			employeeManage.getBrno(emno,function(data1){
			if(data1 == "")
			{
				jAlert('1', "没有部门负责人,不能申请转正",'系统提示!',function (data){
         				init('0','2','');
         			});
			}
			else
			{
				employeeManage.insertUnDo(emno,function(data){				
				if(data != 0)
				{ 
					sysMsgSet.searchAwoke("9",function(data){
					if(data == 1)	//使用短信提醒
					{
						var content = emname+"申请转正";
						smsInit.sendSms(emno,data1,content,function(data){											
						   	 jAlert('1', "已经成功插入待办事宜,并通知了部门负责人",'系统提示!',function (data){
		          				init('0','2','');
						  	 });
							});						
					}
					if(data == 0)	//不使用短信提醒
					{
						 jAlert('1', "已经成功插入待办事宜",'系统提示!',function (data){
		          			init('0','2','');
						  });
					}
					});
			 	}		
				 else {
				 	jAlert('1', "插入失败!",'系统提示!',function (){
             			init('0','2','');
					});
				 }	
				});
			}
			});
		   }
		});
	}					
 }
	

	function detail_back(){
		$('#link4').html('新增员工');
		var check_div='#div'+ openflag;
		 var mylink = '#link'+openflag;	  	 		
	  	 $(mylink).addClass('dd_over');
	  	 $(mylink).removeClass('dd');	  	 		
	  	 $('#link4').removeClass('dd_over');
	  	 $('#link4').addClass('dd');	
		 $('#div5').hide();
		 $(check_div).show();
				
	}
	 
	 //搜索
	 function search(em_sts,temp)
	 {
	 	var key = document.all('search'+temp).value;
		init(em_sts,temp,key);	
	 } 
	 
	   //关闭遮罩层
	function my_close(){
		$("#topFill").css("display","none");
		$("#alertBox_other").css("display","none");
	}
 	function _reposition() {
			var top = (($(window).height() / 2) - ($("#alertBox_other").outerHeight() / 2)) + $.alerts.verticalOffset;
			var left = (($(window).width() / 2) - ($("#alertBox_other").outerWidth() / 2)) + $.alerts.horizontalOffset;
			if( top < 0 ) top = 0;
			if( left < 0 ) left = 0;
			
			// IE6 fix
			if( $.browser.msie && parseInt($.browser.version) <= 6 ) top = top + $(window).scrollTop();
			$("#alertBox_other").css('left',left);
			$("#alertBox_other").css('top',top);
			$("#alertBox_other").css('position','absolute');
			
			$("#alertBox_other").height( $(document).height()-300 );
		}
	//进入新增表单项层
	function my_select(emno,brno){
		DWREngine.setAsync(false);
			$("#topFill").css("display","block");
			$("#alertBox_other").css("display","block");
			$("#alertBox_other").draggable();
			employeeManage.getloan(emno,brno,function(data){
				$('#alertBox_other').html(data);
			})
			_reposition();
	}
    </SCRIPT>
</HEAD>
<BODY>
<DIV id=topFill class=topFill></DIV>
<DIV style="WIDTH: 100%; HEIGHT: auto" id=table>
<DIV class=repeat>
<UL id=tabs class=tabs>
<LI id=personClientOpenInfo value=1 jQuery1362935751209="1"><A id=link1 class=dd onclick="init('2','1','')">正式员工</A> </LI>
<LI id=personClientOpen1 value=2 jQuery1362935751209="2"><A id=link2 class=dd onclick="init('0','2','')">待转正员工</A> </LI>
<LI id=personClientOpen2 value=3 jQuery1362935751209="3"><A id=link3 class=dd onclick="init('4','3','')">离职员工</A> </LI>
<LI style="DISPLAY: block" id=personClientOpen3 value=4 jQuery1362935751209="4"><A id=link4 class=dd_over>新增员工</A></LI></UL></DIV>
<DIV class=tablecard><!-- 正式员工列表 start-->
<DIV style="WIDTH: 100%; DISPLAY: none; HEIGHT: 100%" id=div1 class=nr value="1">
<FORM method=post name=formList1>
<DIV class=divsreatch><INPUT class=divadd onclick=addemp(); value=新增员工 type=button> 
<DIV class=sreatch>智能查询: <INPUT id=search1 name=search1 type=text> <INPUT id=btnsreatch onclick="my_search('1')" value="搜 索" type=button> </DIV></DIV>
<DIV id=emp_list1 class=divlist name="emp_list1" value="1">
<TABLE id=datalist>
<TBODY>
<TR>
<TH onclick="setsession_jsp('emno')">员工编号 </TH>
<TH onclick="setsession_jsp('emname')">员工姓名 </TH>
<TH onclick="setsession_jsp('E.DEP_NO')">归属部门 </TH>
<TH onclick="setsession_jsp('levelno')">职位级别 </TH>
<TH onclick="setsession_jsp('start_date')">入职时间 </TH>
<TH onclick="setsession_jsp('em_sts')">员工状态 </TH>
<TH onclick="setsession_jsp('')">操&nbsp;&nbsp;作 </TH></TR>
<TR class=js ondblclick="my_update('0005','2')" tmpClass="js"><INPUT id=dep_no value=46002 type=hidden><INPUT id=emp_sts value=2 type=hidden>
<TD>0005</TD>
<TD>常晓华</TD>
<TD>郑州办事处</TD>
<TD>副处级以上</TD>
<TD>20090830</TD>
<TD>正式</TD>
<TD><A href="javascript:my_update('0005','2')">����</A>&nbsp;&nbsp;<A href="javascript:emp_leave('0005','2')">��ְ</A>&nbsp;&nbsp;</TD></TR>
<TR class=os ondblclick="my_update('1017','2')" tmpClass="os"><INPUT id=dep_no value=46002 type=hidden><INPUT id=emp_sts value=2 type=hidden>
<TD>1017</TD>
<TD>贾静喜</TD>
<TD>郑州办事处</TD>
<TD>一般职务</TD>
<TD>20091209</TD>
<TD>正式</TD>
<TD><A href="javascript:my_update('1017','2')">����</A>&nbsp;&nbsp;<A href="javascript:emp_leave('1017','2')">��ְ</A>&nbsp;&nbsp;</TD></TR>
<TR class=js ondblclick="my_update('1024','2')" tmpClass="js"><INPUT id=dep_no value=46003 type=hidden><INPUT id=emp_sts value=2 type=hidden>
<TD>1024</TD>
<TD>王二</TD>
<TD>南阳办事处</TD>
<TD>副科级以上</TD>
<TD>20101214</TD>
<TD>正式</TD>
<TD><A href="javascript:my_update('1024','2')">����</A>&nbsp;&nbsp;<A href="javascript:emp_leave('1024','2')">��ְ</A>&nbsp;&nbsp;</TD></TR>
<TR class=os ondblclick="my_update('1029','2')" tmpClass="os"><INPUT id=dep_no value=46002 type=hidden><INPUT id=emp_sts value=2 type=hidden>
<TD>1029</TD>
<TD>赞成华</TD>
<TD>郑州办事处</TD>
<TD>未知</TD>
<TD>20121230</TD>
<TD>正式</TD>
<TD><A href="javascript:my_update('1029','2')">����</A>&nbsp;&nbsp;<A href="javascript:emp_leave('1029','2')">��ְ</A>&nbsp;&nbsp;</TD></TR>
<TR class=js ondblclick="my_update('1031','2')" tmpClass="js"><INPUT id=dep_no value=46001 type=hidden><INPUT id=emp_sts value=2 type=hidden>
<TD>1031</TD>
<TD>鲁思朋</TD>
<TD>北京鼎信华铭</TD>
<TD>一般职务</TD>
<TD>20101019</TD>
<TD>正式</TD>
<TD><A href="javascript:my_update('1031','2')">����</A>&nbsp;&nbsp;<A href="javascript:emp_leave('1031','2')">��ְ</A>&nbsp;&nbsp;</TD></TR>
<TR class=os ondblclick="my_update('1032','2')" tmpClass="os"><INPUT id=dep_no value=46002 type=hidden><INPUT id=emp_sts value=2 type=hidden>
<TD>1032</TD>
<TD>黄云凌</TD>
<TD>郑州办事处</TD>
<TD>副处级以上</TD>
<TD>20091130</TD>
<TD>正式</TD>
<TD><A href="javascript:my_update('1032','2')">����</A>&nbsp;&nbsp;<A href="javascript:emp_leave('1032','2')">��ְ</A>&nbsp;&nbsp;</TD></TR>
<TR class=js ondblclick="my_update('1034','2')" tmpClass="js"><INPUT id=dep_no value=46002 type=hidden><INPUT id=emp_sts value=2 type=hidden>
<TD>1034</TD>
<TD>薛静</TD>
<TD>郑州办事处</TD>
<TD>一般职务</TD>
<TD>20091201</TD>
<TD>正式</TD>
<TD><A href="javascript:my_update('1034','2')">����</A>&nbsp;&nbsp;<A href="javascript:emp_leave('1034','2')">��ְ</A>&nbsp;&nbsp;</TD></TR>
<TR class=os ondblclick="my_update('1035','2')" tmpClass="os"><INPUT id=dep_no value=46001 type=hidden><INPUT id=emp_sts value=2 type=hidden>
<TD>1035</TD>
<TD>周静</TD>
<TD>北京鼎信华铭</TD>
<TD>副处级以上</TD>
<TD>20101101</TD>
<TD>正式</TD>
<TD><A href="javascript:my_update('1035','2')">����</A>&nbsp;&nbsp;<A href="javascript:emp_leave('1035','2')">��ְ</A>&nbsp;&nbsp;</TD></TR>
<TR class=js ondblclick="my_update('1037','2')" tmpClass="js"><INPUT id=dep_no value=46002 type=hidden><INPUT id=emp_sts value=2 type=hidden>
<TD>1037</TD>
<TD>任可欣</TD>
<TD>郑州办事处</TD>
<TD>厅局级以上</TD>
<TD>20091201</TD>
<TD>正式</TD>
<TD><A href="javascript:my_update('1037','2')">����</A>&nbsp;&nbsp;<A href="javascript:emp_leave('1037','2')">��ְ</A>&nbsp;&nbsp;</TD></TR>
<TR class=os ondblclick="my_update('1039','2')" tmpClass="os"><INPUT id=dep_no value=46002 type=hidden><INPUT id=emp_sts value=2 type=hidden>
<TD>1039</TD>
<TD>陈丽</TD>
<TD>郑州办事处</TD>
<TD>厅局级以上</TD>
<TD>20101128</TD>
<TD>正式</TD>
<TD><A href="javascript:my_update('1039','2')">����</A>&nbsp;&nbsp;<A href="javascript:emp_leave('1039','2')">��ְ</A>&nbsp;&nbsp;</TD></TR>
<TR class=page>
<TD colSpan=20>
<DIV style="FLOAT: left; align: left">&nbsp;ÿҳ��ʾ<SELECT id=pageSize onchange="javascript:goSearch('1', this.value)"><OPTION value=5>5</OPTION><OPTION selected value=10>10</OPTION><OPTION value=15>15</OPTION><OPTION value=20>20</OPTION><OPTION value=25>25</OPTION><OPTION value=50>50</OPTION><OPTION value=100>100</OPTION></SELECT>���¼</DIV>
<DIV style="FLOAT: right; align: right">��1ҳ/��5ҳ ��43���¼<A style="TEXT-DECORATION: none" href="javascript:goSearch('1','10')">&nbsp;��ҳ</A><A style="TEXT-DECORATION: none" href="javascript:goSearch('2','10')">&nbsp;��һҳ</A><A style="TEXT-DECORATION: none" href="javascript:goSearch('5','10')">&nbsp;βҳ</A>&nbsp;��ת��:<SELECT id=pageNo onchange=goSearch(this.value,10) name=pageNo><OPTION selected value=1>1</OPTION><OPTION value=2>2</OPTION><OPTION value=3>3</OPTION><OPTION value=4>4</OPTION><OPTION value=5>5</OPTION></SELECT></DIV></TD></TR></TBODY></TABLE></DIV></FORM></DIV><!--正式员工列表  end--><!-- 待转正员工员工列表 start-->
<DIV style="WIDTH: 100%; DISPLAY: none; HEIGHT: 100%" id=div2 class=nr value="2">
<FORM method=post name=formList2>
<DIV class=divsreatch>
<DIV class=sreatch>智能查询: <INPUT id=search2 name=search2 type=text> <INPUT id=btnsreatch onclick="my_search('1')" value="搜 索" type=button> </DIV></DIV>
<DIV id=emp_list2 class=divlist name="emp_list2" value="2">
<TABLE>
<TBODY>
<TR>
<TH onclick="setsession_jsp('emno')">员工编号 </TH>
<TH onclick="setsession_jsp('emname')">员工姓名 </TH>
<TH onclick="setsession_jsp('E.DEP_NO')">归属部门 </TH>
<TH onclick="setsession_jsp('levelno')">职位级别 </TH>
<TH onclick="setsession_jsp('start_date')">入职时间 </TH>
<TH onclick="setsession_jsp('em_sts')">员工状态 </TH>
<TH onclick="setsession_jsp('')">操&nbsp;&nbsp;作 </TH></TR></TBODY></TABLE></DIV></FORM></DIV><!-- 待转正员工员工列表 end--><!-- 离职员工员工列表 start -->
<DIV style="WIDTH: 100%; DISPLAY: none; HEIGHT: 100%" id=div3 class=nr value="3">
<FORM method=post name=formList3>
<DIV class=divsreatch>
<DIV class=sreatch>智能查询: <INPUT id=search3 name=search3 type=text> <INPUT id=btnsreatch onclick="my_search('1')" value="搜 索" type=button> </DIV></DIV>
<DIV id=emp_list3 class=divlist name="emp_list3" value="3">
<TABLE>
<TBODY>
<TR>
<TH onclick="setsession_jsp('emno')">员工编号 </TH>
<TH onclick="setsession_jsp('emname')">员工姓名 </TH>
<TH onclick="setsession_jsp('E.DEP_NO')">归属部门 </TH>
<TH onclick="setsession_jsp('levelno')">职位级别 </TH>
<TH onclick="setsession_jsp('start_date')">入职时间 </TH>
<TH onclick="setsession_jsp('em_sts')">员工状态 </TH>
<TH onclick="setsession_jsp('')">操&nbsp;&nbsp;作 </TH></TR></TBODY></TABLE></DIV></FORM></DIV><!-- 离职员工员工列表 end -->
<DIV style="WIDTH: 100%; DISPLAY: block; HEIGHT: 100%" id=div4 class=nr value="4"><!-- 正式员工新增 -->
<DIV style="DISPLAY: block" id=formal_personadd>
<FORM id=formal_personform method=post name=formal_personform>
<DIV class=divsmalltable>
<TABLE id=t59><INPUT id=date name=date value=20130311 type=hidden>
<TBODY>
<TR>
<TD class=jstd>Ա������</TD>
<TD class=ostd><INPUT id=emname name=emname maxLength=60 type=text><FONT color=red>*</FONT></TD></TR>
<TR class=ostr>
<TD class=jstd>���֤�ţ�</TD>
<TD class=ostd><INPUT id=id_card onchange=valShf(this.form); name=id_card type=text><FONT color=red>*</FONT></TD></TR>
<TR>
<TD class=jstd>�������ڣ�</TD>
<TD class=ostd><INPUT id=birthday disabled name=birthday readOnly type=text><FONT color=red>*</FONT></TD></TR>
<TR class=ostr>
<TD class=jstd>�Ա�</TD>
<TD class=ostd><SELECT id=sex disabled name=sex><OPTION selected></OPTION><OPTION value=0>女</OPTION><OPTION value=1>男</OPTION></SELECT><FONT color=red>*</FONT></TD></TR>
<TR>
<TD class=jstd>�����ţ�</TD>
<TD class=ostd><SELECT id=dep_no name=dep_no><OPTION selected value="">-��ѡ��-</OPTION><OPTION value=46003>南阳办事处</OPTION><OPTION value=46001>北京鼎信华铭</OPTION><OPTION value=46002>郑州办事处</OPTION><OPTION value=46005>研发部</OPTION><OPTION value=46008>研发分部2</OPTION><OPTION value=46004>测试部门</OPTION><OPTION value=46009>财务部</OPTION><OPTION value=46010>客服部</OPTION><OPTION value=46013>测删部门2</OPTION><OPTION value=46011>测试部</OPTION><OPTION value=46014>主流负责本门</OPTION><OPTION value=46012>ceshi</OPTION></SELECT><FONT color=red>*</FONT></TD></TR>
<TR class=ostr>
<TD class=jstd>ְ��</TD>
<TD class=ostd><SELECT id=pos_no name=pos_no><OPTION selected value="">-��ѡ��-</OPTION><OPTION value=1>高级领导</OPTION><OPTION value=2>中级领导</OPTION><OPTION value=3>一般员工</OPTION><OPTION value=4>其他</OPTION><OPTION value=9>未知</OPTION></SELECT><FONT color=red>*</FONT></TD></TR>
<TR>
<TD class=jstd>ְλ����</TD>
<TD class=ostd><SELECT id=levelno name=levelno><OPTION selected value="">-��ѡ��-</OPTION><OPTION value=01>厅局级以上</OPTION><OPTION value=02>副处级以上</OPTION><OPTION value=03>副科级以上</OPTION><OPTION value=04>一般职务</OPTION><OPTION value=05>未知</OPTION></SELECT><FONT color=red>*</FONT></TD></TR>
<TR class=ostr>
<TD class=jstd>ְ�ƣ�</TD>
<TD class=ostd><SELECT id=pro_title name=pro_title><OPTION selected value="">-��ѡ��-</OPTION><OPTION value=0>无</OPTION><OPTION value=1>高级</OPTION><OPTION value=2>中级</OPTION><OPTION value=3>初级</OPTION><OPTION value=9>未知</OPTION></SELECT></TD></TR>
<TR>
<TD class=jstd>ѧ��</TD>
<TD class=ostd><SELECT id=degree name=degree><OPTION selected value="">-��ѡ��-</OPTION><OPTION value=0>其他</OPTION><OPTION value=1>名誉博士</OPTION><OPTION value=2>博士</OPTION><OPTION value=3>硕士</OPTION><OPTION value=4>学士</OPTION><OPTION value=9>未知</OPTION></SELECT><FONT color=red>*</FONT></TD></TR>
<TR class=ostr>
<TD class=jstd>��ҵԺУ��</TD>
<TD class=ostd><INPUT id=university name=university maxLength=60 type=text><FONT color=red>*</FONT></TD></TR>
<TR>
<TD class=jstd>רҵ��</TD>
<TD class=ostd><INPUT id=profess name=profess maxLength=40 type=text><FONT color=red>*</FONT></TD></TR>
<TR class=ostr>
<TD class=jstd>��ְʱ�䣺</TD>
<TD class=ostd><INPUT id=start_date name=start_time maxLength=8 type=text><IMG onclick="WdatePicker({el:document.getElementById('start_date'),dateFmt:'yyyyMMdd'})" align=absMiddle src="/loan/common/sharejs/DatePicker/skin/datePicker.gif" width=16 height=22><FONT color=red>*</FONT></TD></TR>
<TR>
<TD class=jstd>�����ڣ�</TD>
<TD class=ostd><INPUT onblur=value=getnumber(this.value) id=trial_date onclick=get(); name=trial_date maxLength=8 value=0 type=text>��<FONT color=red>*</FONT></TD></TR>
<TR class=ostr>
<TD class=jstd>Ա��״̬��</TD>
<TD class=ostd><SELECT id=em_sts name=em_sts><OPTION selected value="">-��ѡ��-</OPTION><OPTION value=0>实习</OPTION><OPTION value=1>试用</OPTION><OPTION value=2>正式</OPTION><OPTION value=3>临时</OPTION><OPTION value=4>离职</OPTION><OPTION value=9>其他</OPTION></SELECT><FONT color=red>*</FONT></TD></TR>
<TR>
<TD class=jstd>��ע��</TD>
<TD class=ostd><TEXTAREA id=filler name=filler maxlength="100"></TEXTAREA></TD></TR>
<TR class=ostr>
<TD class=jstd colSpan=2>
<DIV class=operation><INPUT class=btnok onclick=save_emp(); name=sumbit1 value=���� type=button>&nbsp;&nbsp;<INPUT class=btncel onclick="javascript:back('2');" name=sumbit2 value=���� type=button></DIV></TD></TR></TBODY></TABLE></DIV></FORM></DIV></DIV></DIV></DIV><!-- 遮罩层2 -->
<DIV style="Z-INDEX: 99; POSITION: absolute; BACKGROUND-COLOR: #e5f0f6; WIDTH: 60%; DISPLAY: none; HEIGHT: 60%; CURSOR: pointer" id=alertBox_other align=center></DIV><!-- 遮罩层end --></BODY>
</html>
